//
//  EditImageViewController.h
//  EditImage
//
//  Created by Ngoc on 22/12/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EditImageIncluded.h"
#import "DnSuperImageView.h"
#import "WEPopoverController.h"
#import "WEPopoverContentViewController.h"

@protocol EditImageViewControlerDelegate <NSObject>
-(UITableViewCell*) actionMenuAtIndex:(NSInteger) index;
-(void)controller:(UIViewController*) controller clickAtIndex: (NSInteger) itemIndex;
@end
@interface EditImageViewController : UIViewController<DnRollMenuDelegate,WEPopoverContentViewControllerDelegate> {
    UIToolbar *_toolbar;
    
    NSArray *_redoUndoToolbarItems, *_doneCancelToolbarItems;
    DnRollMenu *_rollMenu;
    DnSuperImageView  *_imageView;
    UIBarButtonItem *_bbtnRedo, *_bbtnUndo, *_bbtnCancel, *_bbtnDone, *_bbtnSave;
    UIImage *_originalImage;
    WEPopoverController *_popover;
    id<EditImageViewControlerDelegate> _delegate;
}
@property (nonatomic, retain) WEPopoverController *popoverController;
@property (nonatomic, retain) id<EditImageViewControlerDelegate> delegate;
@property (nonatomic, readonly) UIImage* currentImage;
-(id) initWithImage:(UIImage*) image delegate:(id) delegate;
@end
